home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / Makefile < prev    next >
Makefile  |  1992-11-08  |  2KB  |  80 lines

  1. # SUBDIRS lists the components of Elk that are compiled and installed by
  2. # running "make" and "make install".  The subdirectory "src" holds the
  3. # interpreter proper; a mininum configuration requires the SUBDIRS include,
  4. # scripts, src, and scm.
  5. #
  6. # Subdirectories if lib/ hold the standard extensions.  Delete them or
  7. # parts of them from SUBDIRS if you don't want them to be compiled and
  8. # installed; delete lib/xm and lib/xm/xt if you don't have Motif on your
  9. # system.
  10.  
  11. SUBDIRS= include\
  12.      scripts\
  13.      src\
  14.      scm\
  15.      lib/util\
  16.      lib/misc\
  17.      lib/xlib\
  18.      lib/xt\
  19.      lib/xaw\
  20.      lib/xm\
  21.      lib/xm/xt
  22.  
  23. # ----------------------------------------------------------------------
  24.  
  25. SHELL= /bin/sh
  26. MAKE=  make
  27. GTAR=  gtar
  28.  
  29. default:
  30.     @for i in $(SUBDIRS) ;\
  31.     do \
  32.         echo Making $$i...; \
  33.         ( cd $$i ; $(MAKE) ) \
  34.     done
  35.  
  36. install:
  37.     @for i in $(SUBDIRS) ;\
  38.     do \
  39.         echo Installing $$i...; \
  40.         ( cd $$i ; $(MAKE) install ) \
  41.     done
  42.  
  43. lint:
  44.     @for i in $(SUBDIRS) ;\
  45.     do \
  46.         echo Linting $$i...; \
  47.         ( cd $$i ; $(MAKE) lint ) \
  48.     done
  49.  
  50. clean:
  51.     @for i in $(SUBDIRS) ;\
  52.     do \
  53.         echo Cleaning $$i...; \
  54.         ( cd $$i ; $(MAKE) clean ) \
  55.     done
  56.  
  57. distclean:
  58.     @for i in $(SUBDIRS) ;\
  59.     do \
  60.         echo Cleaning $$i...; \
  61.         ( cd $$i ; $(MAKE) distclean ) \
  62.     done
  63.  
  64.  
  65. DISTF= ANNOUNCE RELEASE README CHANGES INSTALL MACHINES COPYRIGHT CONTRIBUTORS\
  66.        TODO MIGRATE Makefile config doc examples include lib scm scripts\
  67.        src util contrib ExcludeFiles
  68.  
  69. dist:
  70.     echo elk-`grep "^This is release" RELEASE | awk '{print $$4}'` > .rel
  71.     rm -rf `cat .rel`
  72.     mkdir `cat .rel`
  73.     for i in $(DISTF) ;\
  74.     do \
  75.         (cd `cat .rel`; ln -s ../$$i) \
  76.     done
  77.     $(GTAR) -cvf `cat .rel`.tar -h -X ExcludeFiles `cat .rel`
  78.     compress -f `cat .rel`.tar
  79.     rm -rf `cat .rel` .rel
  80.